import ika

class Hotspot(object):
    def __init__(self, x, y, width, height):
        self.x = x
        self.y = y
        self.width = width
        self.height = height
        
    def Draw(self, x, y):
        ika.Video.DrawRect(x + self.x, y + self.y, x + self.x + self.width, y + self.y + self.height, ika.RGB(255, 0, 0, 127), True)
        
    def Touches(self, box):
        if box != None:
            return self.x + self.width >= box.x and self.x <= box.x + box.width and self.y + self.height >= box.y and self.y <= box.y + box.height
        return False
        